<div class="MainBody">
    <?php echo $html->getTitle('cName')?>  
    <div class="Content">
        <?php echo $html->getContent('cIntro')?>
        
        <?php echo $msg?>
        
        <?php
        if($sendmail==true)
        { 
            echo '</div></div>';
            return;
        }
        ?>
        <form method="post" onsubmit="return checkform(this);">       
        <input type="hidden" name="opt" value="insertcontact" /> 
          <table border="0" cellspacing="5" width="100%">
            <tr>
              <td width="120" class="txth"><?php echo getLang("Your Name");?>: <span class="sao1">*</span></td>
              <td colspan="2">
        	  		<input name="tfullname" id="tfullname" class="tfield" value="<?echo $fullname?>" />
        	  </td>
            </tr>
            <tr>
              <td class="txth"><?echo getLang("Your email")?>: <span class="sao1">*</span></td>
              <td colspan="2">
        			<input name="temail" id="temail" class="tfield" value="<?echo $email?>"/>
        		</td>
            </tr>
            <tr>
              <td  class="txth"><?echo getLang("Subject")?>: <span class="sao1">*</span></td>
              <td colspan="2">
        	  		<input name="tsubject" id="tsubject" class="tfield" value="<?echo $subject?>"/>
        		</td>
            </tr>
            <tr>
              <td  class="txth"><?echo getLang("Your Message")?>: <span class="sao1">*</span></td>
              <td colspan="2">
        	  		<textarea class="tfield" name="tmessage" id="tmessage"><?echo $tmessage?></textarea>
        			<div>
            			<input type="checkbox" name="cSendEmail"/>
            			<?echo getLang("E-mail a copy of this message to your own address.")?> 
        			</div>
        		</td>
            </tr>
            <tr>
              <td  class="txth"><?echo getLang("Spam Code")?>: <span class="sao1">*</span></td>
              <td colspan="2">
        	  	    <input class="tfield" maxlength="5" style="width: 50px;" name="tspamcode" />
        	  	    <img id="imgcodespam" src="/ImgSpam/<?echo time()?>.jpg" width="100" height="20" alt="Code Spam" 
        						onclick="this.src='/ImgSpam/f'+Math.random()+'.jpg'" class="cpointer"/>
        		</td>
            </tr>	
            <tr>
              <td align="right" style="padding-top:15">&nbsp;</td>
              <td colspan="2" style="padding-top:10px">
        			<input type="submit" value="<?echo getLang("Send")?>" />
             </td>
            </tr>
          </table>  
        </form>
    </div>
</div>
<script>
function checkform(f)
{
    if(f.tfullname.value=="")
    {
        alert("please enter your name!");
        return false;
    }
    if(f.temail.value=="")
    {
        alert("please enter your email!");
        return false;
    }
}
</script>